home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / STRINGS / PACKAGE6 / REAL_VAL.DOC < prev    next >
Text File  |  1990-07-25  |  1KB  |  38 lines

  1. --------------------------------------------------------------------------
  2. RealValue
  3. --------------------------------------------------------------------------
  4.  
  5. declaration:    function RealValue(     AString:
  6.                                           TypeString):
  7.                                             real;
  8.  
  9. purpose:        Convert the string of characters in AString from 1 to
  10.                 Astring.Length into a RealValue.
  11.  
  12. preconditions:  AString._PackedArray must be filled from 1 to AString._Length.
  13.                 AString._Length must be filled with an integer.
  14.                 All elements in _PackedArray are valid ('-', '.', '+',
  15.                 ['0'..'9'])
  16.  
  17. postconditions: RealValue is returned with the numbers represented by the
  18.                 string.
  19.  
  20. special cases:  The string may or may not have a '+' or '-' sign in the first
  21.                 place in the array.
  22.  
  23. example:        var
  24.                   AString:
  25.                     TypeString;
  26.  
  27.                 begin
  28.                   .
  29.                   .
  30.                   .
  31.                   writeln( output, RealValue( AString) );
  32.                   .
  33.                   .
  34.                   .
  35.                 end
  36.  
  37. --------------------------------------------------------------------------
  38.